/**
 * multiple-select-master 控件扩展类
 * 功能描述：动态加载json数据
 */
multipleSelectData= function(selectId,jsonObj,code, decoder, defaultCheck) {
	if(typeof jsonObj == "string"){
		var jsonObj = jQuery.parseJSON(jsonObj);
	}
	
	if(!decoder){
		decoder = {valueAttr:'code', displayAttr:'value'};
	}
	
    var select = $("#"+selectId).empty();
	$.each(jsonObj,function(n,item){
		//select.append("<option value='"+item[decoder.valueAttr]+"'>"+item[decoder.displayAttr]+"</option>");
		select.append($("<option/>").val(item[decoder.valueAttr]).text(item[decoder.displayAttr]).data(selectId, item));
	});
	//add by sun.peng 2015-06-20
	if(code == null || code == undefined){
		defaultCheck&&$("option:first-child", select).attr('selected', 'true');
	}else{
		$("option[value='"+code+"']", select).attr("selected","true");
	}
}